package com.think.common.utils;

import java.util.UUID;

public class SysID {

    /**
     * 返回去除连接符-的UUID
     *
     * @return
     */
    public static String uuid() {
        String uuid = uuid2();
        return uuid.replaceAll("-", "");
    }

    /**
     * 返回原生UUID
     *
     * @return
     */
    public static String uuid2() {
        return UUID.randomUUID().toString();
    }
}
